<template>
<view :class="pageClass" :style="pageStyle" v-if="pageReady">
		<moxi-nav :set="navSet"></moxi-nav>
		<view v-for="(list,key) in modData" :class="list.mod_class"  :style="list.css">
			<userinfo :user="curUser" :set="list.set" v-if="list.name=='user_info'"></userinfo>
		    <moxi-index v-else :list="list"></moxi-index>
		</view>
		 <moxi-tabbar :set="tabbar" v-if="tabbar.index_id"></moxi-tabbar>
</view>
</template>
<script> 
	import userinfo from '@/page_user/component/user_info.vue';
	export default {
		components:{userinfo
		},//2.注册组件
		data() {
			return {
				curUser:{},
			}
		},
		onLoad() {
			
		},
		onShow() {
			this.get();
		},
		methods: {
			get(){
				let self = this;
				this.moxiPost('/index/app/get_userinfo',{},function(data){
					
					self.curUser = data.data;
				})
			}
		}
	}
</script>

<style>

</style>
